﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class CalculatorLP
    {
        float KQ;
        float Canh;

        public float NhapCanh
        {
            get { return Canh; }
            set { Canh = value; }
        }
        public void NhapDuLieu()
        {
            Console.Write("nhap canh: ");
            Canh = Convert.ToSingle(Console.ReadLine());
        }
        public float DienTichXungQuanh()
        {
            KQ = Convert.ToSingle(Math.Pow(Canh, 2))*4;
            return KQ;
        }
        public float TheTich()
        {
            KQ = Convert.ToSingle(Math.Pow(Canh, 3));
            return KQ;
        }
        public float DienTichToanPhan()
        {
            KQ = Convert.ToSingle(Math.Pow(Canh, 2))*6;
            return KQ;

        }
    }
}
